import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [

  {
    path: '/',
    name: 'Example',
    component: ()=>import('../views/Example')
  },
  {
    path: '/about',
    name: 'About',
    component: () => import(/* webpackChunkName: "about" */ '../views/About')
  },{
    path:'/project',
    name: 'Project',
    component: ()=>import('../views/Project.vue')
  },{
    path:'/project_e',
    name: 'Project_example',
    component: ()=>import('../views/lists/Project_example')
  },{
    path:'/my',
    name:'My',
    component: ()=>import('../views/lists/My')
  },{
    path:'/public',
    name:'Public',
    component: ()=>import('../views/lists/Public')
  },{
    path:'/example',
    name:'Example',
    component: ()=>import('../views/Example')
  },{
    path:'/stars',
    name:'Stars',
    component: ()=>import('../views/lists/Stars')
  },{
    path:'/create',
    name:'CrateProject',
    component: ()=>import('../views/CreateProject')
  }, {
    path:'/edit',
    name:'EditProject',
    component: ()=>import('../views/EditProject')
  },{
    path:'/user',
    name:'User',
    component: ()=>import('../views/User')
  },

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
